﻿namespace AnyOffice.Model
{
    using System;

    public class KnowledgeData
    {
        protected object _accessUser;
        protected object _defaultPriv;
        protected int _diskId = -1;
        protected object _diskPath;
        protected object _downloadUser;
        protected object _editUser;
        protected object _manageUser;
        protected string _name = string.Empty;
        protected object _newUser;
        protected object _postDept;
        protected object _readPriv;
        protected object _readUser;
        protected int _type;

        public string AccessUser
        {
            get
            {
                return (string) this._accessUser;
            }
            set
            {
                this._accessUser = value;
            }
        }

        public bool AccessUserIsNull
        {
            get
            {
                return (this._accessUser == null);
            }
            set
            {
                if (value)
                {
                    this._accessUser = null;
                }
            }
        }

        public string DefaultPriv
        {
            get
            {
                return (string) this._defaultPriv;
            }
            set
            {
                this._defaultPriv = value;
            }
        }

        public bool DefaultPrivIsNull
        {
            get
            {
                return (this._defaultPriv == null);
            }
            set
            {
                if (value)
                {
                    this._defaultPriv = null;
                }
            }
        }

        public int DiskId
        {
            get
            {
                return this._diskId;
            }
            set
            {
                this._diskId = value;
            }
        }

        public string DiskPath
        {
            get
            {
                return (string) this._diskPath;
            }
            set
            {
                this._diskPath = value;
            }
        }

        public bool DiskPathIsNull
        {
            get
            {
                return (this._diskPath == null);
            }
            set
            {
                if (value)
                {
                    this._diskPath = null;
                }
            }
        }

        public string DownloadUser
        {
            get
            {
                return (string) this._downloadUser;
            }
            set
            {
                this._downloadUser = value;
            }
        }

        public bool DownloadUserIsNull
        {
            get
            {
                return (this._downloadUser == null);
            }
            set
            {
                if (value)
                {
                    this._downloadUser = null;
                }
            }
        }

        public string EditUser
        {
            get
            {
                return (string) this._editUser;
            }
            set
            {
                this._editUser = value;
            }
        }

        public bool EditUserIsNull
        {
            get
            {
                return (this._editUser == null);
            }
            set
            {
                if (value)
                {
                    this._editUser = null;
                }
            }
        }

        public string ManageUser
        {
            get
            {
                return (string) this._manageUser;
            }
            set
            {
                this._manageUser = value;
            }
        }

        public bool ManageUserIsNull
        {
            get
            {
                return (this._manageUser == null);
            }
            set
            {
                if (value)
                {
                    this._manageUser = null;
                }
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public string NewUser
        {
            get
            {
                return (string) this._newUser;
            }
            set
            {
                this._newUser = value;
            }
        }

        public bool NewUserIsNull
        {
            get
            {
                return (this._newUser == null);
            }
            set
            {
                if (value)
                {
                    this._newUser = null;
                }
            }
        }

        public string PostDept
        {
            get
            {
                return (string) this._postDept;
            }
            set
            {
                this._postDept = value;
            }
        }

        public bool PostDeptIsNull
        {
            get
            {
                return (this._postDept == null);
            }
            set
            {
                if (value)
                {
                    this._postDept = null;
                }
            }
        }

        public string ReadPriv
        {
            get
            {
                return (string) this._readPriv;
            }
            set
            {
                this._readPriv = value;
            }
        }

        public bool ReadPrivIsNull
        {
            get
            {
                return (this._readPriv == null);
            }
            set
            {
                if (value)
                {
                    this._readPriv = null;
                }
            }
        }

        public string ReadUser
        {
            get
            {
                return (string) this._readUser;
            }
            set
            {
                this._readUser = value;
            }
        }

        public bool ReadUserIsNull
        {
            get
            {
                return (this._readUser == null);
            }
            set
            {
                if (value)
                {
                    this._readUser = null;
                }
            }
        }

        public int Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }
    }
}

